package edu.yourl.presenter;

import edu.yourl.domain.User;
import edu.yourl.persistence.IUserRepository;
import edu.yourl.web.IBasePage;

public class BasePagePresenter implements IBasePagePresenter{

	protected IUserRepository userRepository;
	
	public User getCurrentUser(IBasePage basePage) {
		return userRepository.getUser(basePage.getCurrentUserNick());
	}
	
	public void setUserRepository(IUserRepository userRepository) {
		this.userRepository = userRepository;
	}
}
